/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 */

import { DispatcherType } from '../../../../../src/base/internal/pool/enum/dispatcher-type';
import { DispatcherFactory } from '../../../../../src/base/internal/pool/dispatcher/dispatcher-factory';

describe('test dispatcher factory', () => {
  test('test getDispatcher', () => {
    expect(DispatcherFactory.getDispatcher(DispatcherType.LOOP_PRIORITY)).toBeDefined();
    const a: any = 42;
    expect(DispatcherFactory.getDispatcher(a)).toBeUndefined();
  });
});
